package com.library.evaluate.util;

import com.library.entity.Evaluate;

/**
 * Created by ACat on 2017/2/25.
 * ACat i lele.
 */
public class EvaluateReturner {

    private Integer evaluateId;   //评价记录ID
    private Integer book;    //图书ID
    private String staff;   //姓名
    private String date;    //日期
    private String description; //描述
    private Integer praise; //赞数


	public EvaluateReturner(Evaluate evaluate) {
        if(evaluate == null) return;
        this.evaluateId = evaluate.getEvaluateId();
        this.book = evaluate.getBook().getBookId();
        this.staff = evaluate.getStaff().getName();
        this.date = evaluate.getDate();
        this.description = evaluate.getDescription();
        this.praise = evaluate.getPraise();
	}


    public Integer getEvaluateId() {
        return evaluateId;
    }

    public void setEvaluateId(Integer evaluateId) {
        this.evaluateId = evaluateId;
    }

    public Integer getBook() {
        return book;
    }

    public void setBook(Integer book) {
        this.book = book;
    }

    public String getStaff() {
        return staff;
    }

    public void setStaff(String staff) {
        this.staff = staff;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getPraise() {
        return praise;
    }

    public void setPraise(Integer praise) {
        this.praise = praise;
    }
}
